<%@page import="com.tubeonfire.entity.Channel"%>
<%@page import="com.tubeonfire.entity.Category"%>
<%@page import="com.tubeonfire.service.ChannelService"%>
<%@page import="java.util.List"%>
<!-- Footer -->
<footer id="footer">
	<span class="left-footer"> &copy; 2012 <a href="/">Tubeonfire</a>
		<br />Powered by <a class="signature" href="/"> Tubeonfire v1.0</a>

	</span> <span class="right-footer"> <a href="http://www.youtube.com"
		target="_blank" title="This application utilizes Youtube API"><img
			src="/images/ytp_powered_by.png" border="0" /></a>

	</span>
</footer>

<div id="footmenu_wrapper">
	<div id="footmenu" class="nav_up bar_nav round_all clearfix">

		<ul class="round_all clearfix">
			<li class="round_left"><a href="/home"> <img
					src="/images/bended_arrow_left.png"> Home <span class="icon">&nbsp;</span></a>
			</li>

			<li class=""><a href="/home"> <img src="/images/Globe.png">Language<span
					class="icon">&nbsp;</span>
			</a>
				<ul>
					<li><a href="/home"> <img src="/images/us.png">
							English
					</a></li>
				</ul></li>

			<li><a href="/home"> <img src="/images/film_strip_2.png">Videos<span
					class="icon">&nbsp;</span>
			</a>
				<ul>
					<li><a href="/charts/top-favorites"> <img src="/images/Headphones.png">
							Top Favorites
					</a></li>
					<li><a href="/charts/most-discussed"> <img src="/images/stop_watch.png">
							Most Discussed
					</a></li>
					<li><a href="/charts/most-viewed"> <img
							src="/images/Preview.png"> Most Viewed
					</a></li>
					<li><a href="/charts/top-rated"> <img
							src="/images/Cup.png"> Top Rated
					</a></li>

					<li><a href="/home">Recent Search <img
							src="/images/battery_full.png"> <span class="icon">&nbsp;</span>
					</a>
						<ul>
							<li><a href="/search/Flo+Rida">Flo Rida </a></li>
							<li><a href="/search/Rihanna">Rihanna </a></li>
							<li><a href="/search/SEO+Tutorial">SEO Tutorial </a></li>
							<li><a href="/search/Chicas+Lindas">Chicas Lindas </a></li>
						</ul></li>

					<li><a href="/charts/most-shared"> <img
							src="/images/Megaphone.png"> Most Shared
					</a></li>
				</ul></li>
			<%
		List<Channel> listChannel = (List<Channel>) request.getAttribute("listChannel");			
		if(listChannel!=null&&listChannel.size()>0)
		{
			%>
			<li><a href="/home"> <img src="/images/Battery.png">Channels<span
					class="icon">&nbsp;</span>
			</a>
				<ul>
					<%
			for(Channel tubChannel : listChannel){
%>
					<li><a href="/channel/<%=tubChannel.getAlias()%>"
						title="<%=tubChannel.getTitle().getValue()%>"> <img
							src="/images/film_strip_2.png"> <%=tubChannel.getSubTitle() %></a>
					</li>
					<%
			}
			%>
				</ul></li>
			<%
		}
%>

			<%
		List<Category> listCategory = (List<Category>) request.getAttribute("listCategory");			
		if(listCategory!=null&&listCategory.size()>0)
		{
			%>
			<li><a href="/home"> <img src="/images/Archive.png">Categories<span
					class="icon">&nbsp;</span>
			</a>
				<ul>
					<%
			for(Category category : listCategory){
%>
					<li><a href="/category/<%=category.getAlias()%>"
						title="<%=category.getTitle().getValue()%>"> <img
							src="/images/film_strip_2.png"> <%=category.getSubTitle() %></a>
					</li>
					<%
			}
			%>
				</ul></li>
			<%
		}
%>			

			<li><a href="/login"> <img src="/images/Footprints.png">
					Login
			</a></li>			

			<li class="send_right"><img src="/images/logo-footer.png"
				border="0"></li>
		</ul>
	</div>
</div>
<div class="clear"></div>
</section>

<script type="text/javascript" src="/js/sherpa_ui.js"></script>
<script type="text/javascript" src="/js/jquery.custom.js"></script>
<!-- the mousewheel plugin -->
<script type="text/javascript" src="/js/jquery.mousewheel.js"></script>
<!-- <script type="text/javascript" src="/js/jquery.jscrollpane.min.js"></script>
<script type="text/javascript" src="/js/scroll-startstop.events.jquery.js"></script>
<script type='text/javascript' src='/js/videoscroll.js'></script> -->

<script type="text/javascript">
jQuery(document).ready(function(){	
	$('#like').click(function(){
		var b = "592592";
		var dataString = 'val=' + b;
		$.post("components/voting.php?"+ dataString, {
		}, function(response){
			$('#voting_result').fadeIn();
			$('#voting_result').html($(response).fadeIn('slow').delay(2500).fadeOut());
});
	});	
});	
</script>


<script type="text/javascript">
	jQuery(document)
			.ready(
					function() {
						$('.repeat,#repeat')
								.live(
										'click',
										function(ev) {
											var video = $(this).attr('href');
											$
													.lightbox(
															'/css/player.swf',
															{
																width : 626,
																height : 336,
																force : 'flash',																
																flashvars : 'file='
																		+ video
																		+ '&autostart=true&repeat=always&logo.file=/images/logo_small.png&logo.link=http://tubeonfire.com/&logo.hide=false&logo.position=bottom-left&skin=/css/stormtrooper.zip&stretching=fill'
															});

											ev.preventDefault();

										});
					});
</script>
</body>
</html>